/**
 * \file CResponse.h
 * \author Corentin Le Bail
 * \date 2009-2013
 * \brief Fichier de déclaration de la classe CResponse.
 */
//------------------------------------------------------------------------------
#ifndef __CRESPONSE_H__
#define __CRESPONSE_H__
//------------------------------------------------------------------------------
#include <QVariant>
//------------------------------------------------------------------------------
class CResponse {
	public:
		QVariant getData(void) { return data; }
		int getErrorCode(void) { return errorCode; }
		QString getErrorMessage(void) { return errorMessage; }
		static CResponse* fromVariant(QVariant v);
	private:
		QVariant data;
		int errorCode;
		QString errorMessage;

		void setErrorCode(int errorCode) { this->errorCode=errorCode; }
		void setErrorMessage(QString errorMessage) { this->errorMessage=errorMessage; }
		void setData(QVariant data) { this->data=data; }
		
};
//------------------------------------------------------------------------------
#endif// __CRESPONSE_H__
//------------------------------------------------------------------------------